<script type="text/javascript">
	$(function() {
	    $.fn.dataGridOptions.formSubFun("#form",'/modules/loan/borrow/borrowVerify.html');
	    $("#isDS").click(function(){
	    	if($('#isDS').attr("checked"))
			{	
		        $('#fixedTime').attr("disabled",false);
		    }else{
		        $('#fixedTime').attr("disabled",true);
		        $('#fixedTime').val("");
		    }
	    });
	});
</script>
<div class="popShow" style="padding-bottom:0;">
	<h1 class="borrowTitle"><span>标名：</span>${borrow.name}</h1>
	<div class="showItem">
		<span>借款人：</span>
		${user.userName}
	</div>
	<div class="showItem">
		<span>状态：</span>
		<#if borrow.status==-1>
			用户撤回
		<#elseif borrow.status==0>
			待初审
		<#elseif borrow.status==1 && borrow.accountYes == borrow.account>
			满标待审
		<#elseif borrow.status==1>
			招标中
		<#elseif borrow.status==2>
			初审未通过
		<#elseif borrow.status==3>
			复审通过
		<#elseif borrow.status==4 || borrow.status==49>
			复审未通过
		<#elseif borrow.status==5 || borrow.status==59>
			管理员撤回
		<#elseif borrow.status==6>
			还款中
		<#elseif borrow.status==7>
			部分还款
		<#elseif borrow.status==8>
			<#if borrow.type==110 >
			停止流转
			<#else>
			还款成功
			</#if>
		<#elseif borrow.status==9>
			登记成功
		<#elseif borrow.status==11>
			借款人已确认待初审
		<#elseif borrow.status==-2>
			撤回处理中
		<#else>
			错误状态
		</#if>
	</div>
	<div class="showItem">
		<span>借款用途：</span>
		<@linkage plantext="plantext" default=borrow.borrowUse nid="borrow_use" disabled="disabled"/>
	</div>
	<div class="showItem">
		<span>借款期限：</span>
		<#if borrow.type==101>
		满标即还
		<#elseif borrow.borrowTimeType==1>${borrow.timeLimit!"-"} 天<#else>${borrow.timeLimit!"-"} 个月</#if>
	</div>
	<div class="showItem">
		<span>还款方式：</span>
		<@linkage plantext="plantext" default=borrow.style nid="borrow_style" disabled="disabled"/>
	</div>
	<div class="showItem">
		<span>借款总金额：</span>
		${borrow.account} 元
	</div>
	<div class="showItem">
		<span>年利率：</span>
		${borrow.apr} %
	</div>
	<div class="showItem">
		<span>是否推荐：</span>
		${isRecommend}
	</div>
	<#if borrow.type!=110>
	<div class="showItem">
		<span>最低投标金额：</span>
		<#if borrow.lowestAccount??&&borrow.lowestAccount?number gt 0>${borrow.lowestAccount}元<#else>无限制</#if>
	</div>
	<div class="showItem">
		<span>最多投标总额：</span>
		<#if borrow.mostAccount??&&borrow.mostAccount?number gt 0>${borrow.mostAccount}元<#else>无限制</#if>
	</div>
	</#if>
	<#if borrow.type==110>
	<div class="showItem">
		<span>单笔最低投标金额：</span>
		<#if borrow.lowestSingleLimit??&&borrow.lowestSingleLimit?number gt 0>${borrow.lowestSingleLimit}元<#else>无限制</#if>
	</div>
	<div class="showItem">
		<span>单笔最多投标总额：</span>
		<#if borrow.mostSingleLimit??&&borrow.mostSingleLimit?number gt 0>${borrow.mostSingleLimit}元<#else>无限制</#if>
	</div>
	</#if>
	<div class="showItem">
		<span>添加时间：</span>
		${borrow.addTime?string("yyyy-MM-dd HH:mm:ss")}
	</div>
	<div class="showItem">
		<span>IP：</span>
		${borrow.addIp}
	</div>
</div>
<div class="popForm" style="padding-top:0;">
<form id="form" method="post">
	<div class="formitm">
		<label class="lab">是否通过：</label>
		<div class="ipt">
		   	<label><input type="radio" name="status" class="easyui-validatebox" value="1" data-options="required: true"/>通过</label>
			<label><input type="radio" name="status" class="easyui-validatebox" value="0" data-options="required: true" checked="checked"/>不通过</label>
		</div>
	</div>
	<div class="formitm">
		<label class="lab">是否定时：</label>
		<div class="ipt">
			<input id="isDS" type="checkbox" name="isDS" value="1" size="15" class="easyui-validatebox validatebox-text">
			<input type="text" name="fixedTime" id="fixedTime" size="25" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'%y-%M-%d %H:%m:%s'})" class="searchTime" disabled="disabled">
		</div>
	</div>
	<div class="formitm">
		<label class="lab">备注：</label>
		<div class="ipt">
		   <textarea name="remark" class="w400 easyui-validatebox" data-options="required: true"></textarea>
		</div>
	</div>
	<input name="borrowVerifyToken" value="${borrowVerifyToken!}" type="hidden">
	<input name="id" value="${borrow.id}" type="hidden"/>
</form>
</div>
<!-- 图片列表 -->
<div class="borrowForm">
	<div class="guarantee_type">
		<span>图片：</span>
	        <div id="uploadGuaranteeBox" data-arr="uploadFile" style="height: auto;">
	            <ul class="photoUpload" style="list-style: none; padding: 0; margin: 0;">
	            	<#list picList as pic>
	                <li data-mum="${pic.id}">
	                <#if pic.type==4>
                    <a href="${web_url}${pic.picPath}" class="fileshow" rel="guaranteePic">
                    <img src="${web_url}${pic.picPath}"/></a> 
                    </#if>                  
                	</li>
                	</#list>
	            </ul>
	       </div>
	</div>	
</div>
<!-- 图片列表 -->
<div class="borrowForm">
	<div class="guarantee_type">
		<span>图片：</span>
	        <div id="thumbnailBox" data-arr="uploadFile" style="height: auto;">
	            <ul class="photoUpload" style="list-style: none; padding: 0; margin: 0;">
	            	<#list picList as pic>
	                <li data-mum="${pic.id}">
	                <#if pic.type==6>
                    <a href="${web_url}${pic.picPath}" class="fileshow" rel="guaranteePic">
                    <img src="${web_url}${pic.picPath}"/></a> 
                    </#if>                  
                	</li>
                	</#list>
	            </ul>
	       </div>
	</div>	
</div>
<script type="text/javascript">seajs.use("${theme_dir}/js/ajaxfileupload");seajs.use("${theme_dir}/js/upload");</script>
<!-- 图片预览-->
<script type="text/javascript">
	$(".fileshow").fancybox();
	$('.l-btn-text').click(function(){
		if($("#borrowPagePic li").length<=1){
			layer.alert('请上传图片资料', 8);
		}

		/*
		if($("#thumbnailBox li").length<=1){
			layer.alert('请上传缩略图', 8);
		}
		*/
	})
</script>